package com.moli.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.moli.domain.entity.RoleMenu;
import com.moli.mapper.RoleMenuMapper;
import com.moli.service.RoleMenuService;
import org.springframework.stereotype.Service;

/**
 * @Author： XC
 * @Date： 2023-06-08 14:19
 * @Description：
 */


@Service
public class RoleMenuServiceImpl extends ServiceImpl<RoleMenuMapper, RoleMenu> implements RoleMenuService {

	@Override
	public void deleteRoleMenuByRoleId(Long id) {
		LambdaQueryWrapper<RoleMenu> queryWrapper = new LambdaQueryWrapper<>();
		queryWrapper.eq(RoleMenu::getRoleId,id);
		remove(queryWrapper);
	}
}